//
//  DMLoginView.m
//  MCNKuaiYi
//
//  Created by 何典钊 on 2017/1/7.
//  Copyright © 2017年 Mr.Cannon. All rights reserved.
//

#import "DMLoginView.h"

@interface DMLoginView ()
@property (weak, nonatomic) IBOutlet UIImageView *iconImgView;

@end

@implementation DMLoginView

- (void)awakeFromNib {
    [super awakeFromNib];
    _iconImgView.layer.cornerRadius = 40;
    _iconImgView.layer.masksToBounds = YES;
}

//注册
- (IBAction)registers:(UIButton *)sender {
    NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
    
    [center postNotificationName:@"registeredFication" object:nil];
}


//登录
- (IBAction)login:(UIButton *)sender {
    NSNotificationCenter *loginFication = [NSNotificationCenter defaultCenter];
    
    [loginFication postNotificationName:@"loginFication" object:nil];
}

- (id)initLoginView {
    return [[NSBundle mainBundle] loadNibNamed:@"DMLoginView" owner:nil options:nil].lastObject;
}

@end
